package com.enterprise.dao.impl;

import com.enterprise.dao.BaseDao;
import com.enterprise.dao.LogDao;
import com.enterprise.entity.Visitlog;
import com.enterprise.entity.page.PageModel;
import org.springframework.stereotype.Repository;

import javax.annotation.Resource;
import java.util.List;

@Repository("logDao")
public class LogDaoImpl implements LogDao {
	@Resource
	private BaseDao dao;

	@Override
	public int insert(Visitlog visitlog) {
		return dao.insert("visitlog.insert", visitlog);
	}

	@Override
	public int delete(Visitlog visitlog) {
		return 0;
	}

	@Override
	public int update(Visitlog visitlog) {
		return 0;
	}

	@Override
	public Visitlog selectOne(Visitlog visitlog) {
		return (Visitlog) dao.selectOne("visitlog.selectOne", visitlog);
	}

	@Override
	public PageModel selectPageList(Visitlog visitlog) {
		return null;
	}

	@Override
	public List<Visitlog> selectList(Visitlog visitlog) {
		return null;
	}

	@Override
	public int deleteById(int id) {
		return 0;
	}

	@Override
	public Visitlog selectById(int id) {
		return null;
	}
}
